PREFIX = /usr/local

BIN = geojson2dm

all: build

build: clean
	$(CC) -c json.c util.c geojson2dm.c ${CFLAGS}
	$(CC) -o $(BIN) json.o util.o geojson2dm.o ${LDFLAGS}

clean:
	rm -f $(BIN) *.o

install: all
	mkdir -p "${DESTDIR}${PREFIX}/bin"
	cp -f ${BIN} "${DESTDIR}${PREFIX}/bin"
